package com.example;

import com.example.datasource.config.DBConfig1;
import com.example.datasource.config.DBConfig2;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.scheduling.annotation.EnableAsync;

//Springboot- 的核心
@SpringBootApplication// Springboot- 的核心配置 主要目的是开启自动配置
//@Configuration  //一个配置Spring 的配置类
//@Controller    //表明这个是Springmvc 的Controller 的控制器
@EnableAsync//开启异步调用（多线程）在使用多线程的方法上 使用@Asyc 注解
@MapperScan(basePackages = {"com.example.qianwen.mapper","com.example.love.mapper"})
@EnableConfigurationProperties(value = { DBConfig1.class, DBConfig2.class })
public class QianwenApplication {


	public static void main(String[] args) {
		SpringApplication.run(QianwenApplication.class, args);
	}

}
